//
//  TSCMyUploadImageUtil.h
//  Tsc_IOS
//
//  Created by Rio on 15-9-8.
//  Copyright (c) 2015年 idream. All rights reserved.
//


#import <Foundation/Foundation.h>

typedef void(^BOnProgress) (NSString * key, float percent); // 配合七牛借口，构造对应的回调
typedef void(^BOnSuccessOne) (NSString * key, NSString * picUrl);
typedef void(^BOnSuccessAll) (NSMutableDictionary * picKeyUrlDic);
typedef void(^BOnFailure) (NSError * error);

@interface TSCMyUploadImageUtil : NSObject

@property (nonatomic, strong) NSMutableDictionary * picKeyImageDic; // key：待上传图片的key（一般用UIImage的%p字符串，表示该key。也可以是任意字符串）；value：待上传图片的UIImage对象
@property (nonatomic, assign) BOOL isCompressImage; // 是否将图片压缩后再上传（默认：YES）
@property (nonatomic, strong) BOnProgress onProgress;
@property (nonatomic, strong) BOnSuccessOne onSuccessOne;
@property (nonatomic, strong) BOnSuccessAll onSuccessAll;
@property (nonatomic, strong) BOnFailure onFailure;

- (void) startUpload_P1;

@end


